Repository navigation
feat(libSceLibreSsl3): release BIO references through BIO_vfree - #15599
MarrasFederico wants to merge 1 commit into
Conversation
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (3, not counted against this PR)Validation IDs already present on main (8 IDs in 470 tests)Skipped (7)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
I prepared an ordinary merge of main at B-Howell:unstick/pr-15599 if you’d like to use it. It merges main at |
|
@B-Howell thanks for preparing it. Main had moved on to |
|
I merged current main in 40fcc8d. It brings #12945's While resolving it I noticed the two exports assume different BIO layouts, which reviewers may want to settle separately:
I left |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
Replace BIO_vfree's unknown-signature placeholder with void(Bio*), delegating directly to BIO_free_nid_postfix using the existing parent libSceLibreSsl BIO representation. Null input is a no-op, refcounts >1 decrement by one reference without destruction, and a final reference executes callback/destructor cleanup following the parent contract.
40fcc8d to
e100607
Compare
What
BIO_vfreepreviously threw unconditionally. LibreSSL 4.0.0 bio_lib.c defines it as a void wrapper aroundBIO_free.The export now delegates once to the existing parent
BIO_free, discarding its return value. Null is a no-op, retained references are decremented, and final release follows the parent's callback/destructor and allocation rules. Its dedicated source file retains the original notices.BIO_new/memory BIO APIs and forwarded into this library. No second BIO layout or lifetime table is introduced.Neither path was measured on a console.
Tested
Ubuntu 26.04.1, kernel 7.0.0-42-generic, GCC 15, Release,
BUILD_TESTING=ON, on main086c0686c8, then again after merging main4741457fed. Windows and macOS were not compiled here. No title was run.guest_libressl3_bio_lifetime_testsafter every source change. It covers null, a memory BIO, retained references, callback veto, a custom destructor and chained ownership with recording guest allocators. It checks actual releases, callback/destructor counts and errno preservation.-j6.check_conventions.py --base origin/mainandgit diff --checkpass.4741457fed: all 14 LibreSSL3 tests pass, includingguest_libressl3_bio_lifetime. The only conflict was the pending-export count in the debt file, now 67 withBIO_vfreeexcluded.pr_overlap.pyexamined 1777 open PRs. Reported shared debt-count/insertion hunks require reconciliation with other library PRs; none implementsBIO_vfree. In particular, #12945 addsBIO_up_refand uses a separate 112-byte model. This wrapper uses the current parent's 104-byte BIO; future retain/release interoperability between those models needs reconciliation before combining them.I inspected every not-compared branch diff and confirmed that its
BIO_vfreeremains the unconditional placeholder. Their shared-file changes concern:Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)